package Com.aji.h;

import java.util.Scanner;

public class Lazy6{

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		for(;;) {
			System.out.print("请输入一个数：");
			int a = s.nextInt();
			if(a == 1) {
				System.out.println("不是素数");
			}else {
				for(int b = 2;b <= a;b++) {
					if(a%b == 0 && a!= b ) {
						System.out.println("不是素数");
						break;
					}else if(a%b != 0 ) {
						
					}else if(a == b) {
						System.out.println("是素数");
					}
				}
			}	
		}

	}

}